package com.zrar.ak.gkpt.dao;

import com.zrar.ak.gkpt.model.bo.*;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @InterfaceName: IBusinessSchemePeripheralInfoDao
 * @Description: 方案细化外设表Dao层
 * @Author: CaoTao
 * @Create: 2020/04/03
 */
@Repository("businessSchemeRefinementPeripheral")
public interface IBusinessSchemePeripheralInfoDao extends Mapper<BusinessSchemePeripheralInfoBO> {
    int deletePeripheralById(String id);

    /**
     * 根据建设单位编码查询信息是否存在
     * @param map
     * @return
     */
    int queryPeripherByUnitId(Map map);

    int insertInfo(List<BusinessSchemePeripheralInfoBO> peripheralInfoBOList);

    int updateInfo(List<BusinessSchemePeripheralInfoBO> peripheralList);

    BusinessSchemePeripheralInfoBO queryById(String id);

    /**
     * 查询外设信息是否存在
     * @param map
     * @return
     */
    int queryByType(Map map);

    List<BusinessSchemePeripheralInfoBO> queryAllByBasicsId(String basicsId);
}
